/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo3;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class PersonTest {
    public static void main(String[] args) {
     Person p1=new Person("张三","0771-2085011","长岗大道98号");
      Person p2=new Person("李四","0771-2085012","长岗大道98号");
       Person p3=new Person("王五","0771-2085013","长岗大道98号");
       
       
       List list =new ArrayList();
      list.add(p1);
       list.add(p2);
       list.add(p3);
       
       
       System.out.println("ArrayList的元素是:");
       System.out.println(list);
    }

}
